﻿using System;
using System.Collections.Generic;

namespace UDS.Management.Data.Package
{
    public class SqlSchemaChangeFamily
    {
        public string Name;
        public Guid Id;
        public bool AffectsReplication;

        public IEnumerable<SqlSchemaChange> SchemaUpdateChanges;
        public IEnumerable<SqlSchemaChange> SchemaCleanupChanges;

        internal SqlSchemaChangeFamily(SchemaChangeFamily Family, IEnumerable<SqlSchemaChange> UpdateEnumerable, IEnumerable<SqlSchemaChange> CleanupEnumerable)
        {
            this.Name = Family.name;
            this.Id = Family.Id;
            this.SchemaUpdateChanges = UpdateEnumerable;
            this.SchemaCleanupChanges = CleanupEnumerable;
            this.AffectsReplication = Family.affectsReplication;
        }
    }
}